package 
{
	import flash.display.Sprite;
	import flash.text.TextField;
	
	/**
	 * 开始按钮类
	 * */
	public class Button extends Sprite
	{
		public function Button(w :uint,h :uint,text :String)
		{
			super();
			this.graphics.clear();
			this.graphics.lineStyle(1,0);
			this.graphics.beginFill(0xcccccc);
			this.graphics.drawRect(0,0,w,h);
			this.graphics.endFill();
			
			var btnTxt :TextField = new TextField();
			btnTxt.selectable = false;
			btnTxt.text = text;
			this.addChild(btnTxt);
			this.buttonMode = true;
		}
	}
}